package com.example.demo.friendship.model.mongodb;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import java.util.Date;
import java.util.Set;

@Document(collection = "friend")
public class Friend {

    @Id
    private String id;

    private String fbId;

    @ApiModelProperty(value = "名字")
    private String name;

    private String nickname;

    private Date birthday;

    private String email;

    private String url;

    @Enumerated(EnumType.STRING)
    private FriendSex friendSex;

    @ApiModelProperty(value = "语言")
    private String language;

    @ApiModelProperty(value = "血型")
    private String blood;

    @ApiModelProperty(value = "自我介绍")
    private String selfIntro;

    @ApiModelProperty(value = "是否设置精选照片")
    private boolean setGoodImg;

    // 说赞的内容

    // 社团

    // 应用和APP

    // 学历和工作经验
    @ApiModelProperty(value = "学校")
    private Set<String> schools;
    @ApiModelProperty(value = "公司")
    private Set<String> companies;

    // 住过的地方

    // 家人和感情

    // 喜好

    // 好友

    // 好友

    // 时间线采集
    @ApiModelProperty(value = "最后发文时间")
    private Date lastPostDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFbId() {
        return fbId;
    }

    public void setFbId(String fbId) {
        this.fbId = fbId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public FriendSex getFriendSex() {
        return friendSex;
    }

    public void setFriendSex(FriendSex friendSex) {
        this.friendSex = friendSex;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getBlood() {
        return blood;
    }

    public void setBlood(String blood) {
        this.blood = blood;
    }

    public String getSelfIntro() {
        return selfIntro;
    }

    public void setSelfIntro(String selfIntro) {
        this.selfIntro = selfIntro;
    }

    public boolean isSetGoodImg() {
        return setGoodImg;
    }

    public void setSetGoodImg(boolean setGoodImg) {
        this.setGoodImg = setGoodImg;
    }

    public Set<String> getSchools() {
        return schools;
    }

    public void setSchools(Set<String> schools) {
        this.schools = schools;
    }

    public Set<String> getCompanies() {
        return companies;
    }

    public void setCompanies(Set<String> companies) {
        this.companies = companies;
    }
}
